package ai.people.netmon.msgsearch.domain.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

/**
 * @author LiGuanNan
 * @date 2022/6/23 16:55
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "socialmedia-facebook")
public class FacebookAccountRegisterInfo implements Serializable {

    @Id
    @Field(name = "uid", type = FieldType.Text)
    private String uid;

    @Field(name = "address", type = FieldType.Text)
    private String address;

    @Field(name = "birth", type = FieldType.Text)
    private String birth;

    @Field(name = "country", type = FieldType.Text)
    private String country;

    @Field(name = "email", type = FieldType.Text)
    private String email;

    @Field(name = "first_name", type = FieldType.Text)
    private String firstName;

    @Field(name = "hometown", type = FieldType.Text)
    private String hometown;

    @Field(name = "last_name", type = FieldType.Text)
    private String lastName;

    @Field(name = "phone", type = FieldType.Text)
    private String phone;

    @Field(name = "relationship_status", type = FieldType.Text)
    private String relationshipStatus;

    @Field(name = "sex", type = FieldType.Text)
    private String sex;

    @Field(name = "url", type = FieldType.Text)
    private String url;

    @Field(name = "work", type = FieldType.Text)
    private String work;

    private String platform;

}
